import use_case.processRental.cardReader;
import junit.framework.TestCase;


public class cardReaderTest extends TestCase {
	
	 private cardReader cReader;

	   public cardReaderTest(String name) {
	      super(name);
	   }
	   protected void setUp(){
		   cReader = new cardReader();
	   }
	   
	   protected void tearDown(){
		   cReader = null;
	   }
	   
	   public void testCardNumberCount() { 
		  setUp();
		  assertTrue(cReader.receiveCardNumber("0111542346"));
		  tearDown();
	   }
	   
	   public void testGetCardNumber(){
		   setUp();
		   cReader.receiveCardNumber("1546401645");
		   assertEquals("1546401645", cReader.getCardNumber());
		   tearDown();
	   }
}
